import service from '@/utils/request'

export const getList = (params) => {
  return service({
    url: '/admin/reply',
    method: 'get',
    params
  })
}

export const addReply = (data) => {
  return service({
    url: '/admin/reply',
    method: 'post',
    data
  })
}

export const editReply = (id, data) => {
  return service({
    url: `/admin/reply/${id}`,
    method: 'put',
    data
  })
}

export const deleteReply = (data) => {
  return service({
    url: '/admin/reply',
    method: 'delete',
    data
  })
}
